package cn.slipi.admin.common.contants.enumtype;

import java.util.Arrays;

/**
 * TODO: 请添加描述
 *
 * @author lee
 * @date 2019-03-17
 * @since 1.0.0
 */
public enum ImageTypeTagEnum {

    /**
     * 1, "商品图片",2, "品牌LOGO"
     */
    IMAGE_100_100("-slt_100_100","100*100图片"),
    IMAGE_400_400("-slt_400_400", "400*400图片"),
    IMAGE_KEEP_WIDTH_400_400("-slt_detail_400_400","商品图片列表app"),
    IMAGE_200_200("-slt_200_200", "200*200图片");

    private String value;
    private String desc;

    ImageTypeTagEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static ImageTypeTagEnum getByValue(String value) {
        return Arrays.stream(ImageTypeTagEnum.values()).filter((t) -> t.getValue().equals(value)).findFirst().get();
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
